{% extends '__base.tpl' %}
{% block head %}
<title>编程达人 {{data.title}}</title>
<meta name="keywords" content="编程达人作业,在线做作业,做笔记,{{data.title}}" />
<meta name="description" content="{{data.title}}，{{data.content|toDescription}}"/>
<!-- build:css -->
<link rel="stylesheet" href="../../../public/css/page/DPlayer.min.css">
<link rel="stylesheet" href="../../../public/css/other/wangEditor.css">
<link rel="stylesheet" type="text/css" href="../../../public/css/page/contentPage.css" />
<link rel="stylesheet" type="text/css" href="../../../public/css/other/wangEditor.css" />
<link rel="stylesheet" type="text/css" href="../../../public/css/other/wangEditor-extend.css" />
<link rel="stylesheet" type="text/css" href="../../../public/css/page/popup.css" />
<!-- endbuild -->
{% endblock %}
{% block body %}
<div id='box' data-title="编程达人作业-{{data.title}}" data-id="{{data.id}}"
     data-description="编程达人作业-{{data.title}}"  data-comment_type= "2" data-uptype="training">
<div id='content' data-memberid="{{data.memberId}}">
    <div class="contHead">
        <h1>{{data.title}}</h1>
    </div>           
    <div class="contBody">
        <ul class="darenList">
            <li class="darenList-item clearfix">
                <div class="head-img-box">
                    <a href="/{{data.memberId}}/userInfo.html">
                        <img class="fleft head-img" src="{{data.header|imgPath}}" />
                    </a>
                </div>
                <div class="fleft">
                    <h5 class="font16 clo3">
                        <a href="/{{data.memberId}}/userInfo.html">
                            {{data.memberNickName}}
                            {% if data.memberType==='V' %}
                            <img src="../../../public/images/daren1.jpg" class="iconLV1" />
                            {% elif data.memberType==='D' %}
                            <img src="../../../public/images/daren2.jpg" class="iconLV" />
                            {% endif  %}
                            <span class="clo9 ml10">等级 {{data.memberType}}{{ (data.gradeValue/100)|int }}</span>
                        </a>
                        <span  class="hide" data-memberid="{{data.memberId}}" id="memberNotice">
                            <button class="btnStyleS ml20 hide"
                                    onclick="BASE.COMMON.noticeToMember(this)"
                                    data-memberid="{{data.memberId}}">+ 关注</button>
                            <button class="btnStyleC ml20 hide"
                                    onclick="BASE.COMMON.cancelNotice(this)"
                                    data-memberid="{{data.memberId}}">已关注</button>
                        </span>
                        <span id="memberModify" class="hide">
                            <button  data-content="{{data.content}}"
                                     data-attachurl="{{data.attachUrl}}"
                                     onclick="BASE.VIDEO_PLAY_TASK.modefiyTaskPrev(this)"
                                     class="btnBlueM ml30"> 修改作业 </button>
                        </span>
                    </h5>
                    <div class="clo9 font12">{{data.createDateTime|dateFormat}}</div>
                    <div class="ptb20 clo3 editor-content w-e-text"> {{data.content|safe}}</div>
                </div>
            </li>
        </ul>
    </div>
</div><!-- end content-->

<div class="lmessage">
    <div class="commentTag">
        <ul class="clearfix">
            <li>浏览 <em>{{data.clickCount}}</em></li>
            <li>点赞 <em>{{data.likeCount}}</em></li>
            <li>分享 <em>{{data.shareCount}}</em></li>
            <li>
                {% if data.attachUrl %}
                <a class="btnBlueM" target="_blank"
                   href="{{'device/bbs/downloadAttach?id='|imgPath(2)+data.id}}" >附件下载</a>
                {% endif %}
            </li>
            <li class="social-share ml20"  data-initialized="true">分享：
                {%include '__share1.html'%}
            </li>
            <li id="likeIs"  class="pointer mr20" style="float: right">
                <span onclick="BASE.VIDEO_PLAY_TASK.zanTask(this);">
                    <img src='../../../public/images/zan.jpg' class="vsub mr5">点赞
                </span>
                <span onclick="BASE.VIDEO_PLAY_TASK.cancelzanTask(this);" class="orange hide">
                    <img src='../../../public/images/zan_h.png' class="vmiddle mr10">已赞
                </span>
            </li>
        </ul>
    </div> <!-- end commentTag-->
    <div class="lmessageB">
        <span class="lmText">评论
            {% if data.commentCount>0 %}
            ({{data.commentCount}})
            {% endif %}
        </span>
    </div> <!-- end lmessageB-->
    <div class="lmessageC">
       <!-- 评论回复部分-->
        {% include '__comment_reply_list.html' %}
    </div><!-- end lmessageC-->
</div><!-- end lmessage-->

<!--作业修改-->
    <div id="mofifyTask" class="popup" style="display: none;">
        <div class="popupBody" style="padding: 0 20px 30px;">
            <div class="popupDiv1" style="float: none;background: #fff">
                <b>修改作业</b>
                <i class="pointer" onclick="$('#mofifyTask').hide()">
                    <img src="../../../public/images/close.jpg">
                </i>
            </div>
            <div>
                {% include '__edtior.html' %}
                <!-- <textarea class="reply-textarea" placeholder=""  maxlength="6535" id="task_content"></textarea>-->
                <div class="tright">
                    <button class="btnBlueM ml30" onclick="BASE.VIDEO_PLAY_TASK.suremodefiyTask(this)">确认修改</button>
                </div>
            </div>
        </div>
    </div>

</div> <!-- end box-->
{% endblock %}

{% block footer %}
{{ super() }}

{% endblock %}

{% block script %}
 {{ super() }}
<!-- build:js -->
 <script src="../../../public/js/page/plugin/wangEditor.js"></script>
 <script src="../../../public/js/page/plugin/wangEditor-extentd.js"></script>
 <script src='../../../public/js/page/plugin/nativepage.js'></script>
 <script src='../../../public/js/page/common/upload.js'></script>
 <script src='../../../public/js/page/video/video_play_task.js'></script>
<!-- endbuild -->
{% endblock %}